<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <script type="text/javascript" src="/js/common/jquery-1.11.1.min_044d0927.js"></script>
    <script type="text/javascript" src="/js/common/jquery.bxslider_e88acd1b.js"></script>
    <script type="text/javascript" src="/js/common/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/js/common/menu.js"></script>
    <script type="text/javascript" src="/js/common/select.js"></script>
    <script type="text/javascript" src="/js/common/lrscroll.js"></script>
    <script type="text/javascript" src="/js/common/iban.js"></script>
    <script type="text/javascript" src="/js/common/fban.js"></script>
    <script type="text/javascript" src="/js/common/f_ban.js"></script>
    <script type="text/javascript" src="/js/common/mban.js"></script>
    <script type="text/javascript" src="/js/common/bban.js"></script>
    <script type="text/javascript" src="/js/common/hban.js"></script>
    <script type="text/javascript" src="/js/common/tban.js"></script>
    <script type="text/javascript" src="/js/common/lrscroll_1.js"></script>

    <script type="text/javascript" src="/js/register/register.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/ShopShow.css" />
    <link rel="stylesheet" type="text/css" href="/css/MagicZoom.css" />
    <script type="text/javascript" src="/js/common/MagicZoom.js"></script>
    <script type="text/javascript" src="/js/common/num.js"></script>
    <script type="text/javascript" src="/js/common/p_tab.js"></script>
    <script type="text/javascript" src="/js/common/shade.js"></script>
</head>
<body>
    <div class="pages">
    <c:if test="${pager.pageCount>=1}">
        <a href="${ctx}/${pager.url}&currentPage=1" class="p_pre">首页</a>
        <c:if test="${pager.currentPage>1}">
            <a href="${ctx}/${pager.url}&currentPage=${pager.currentPage-1}" class="p_pre">上一页</a>
        </c:if>
        <c:forEach  var="temp" begin="${pager.currentPage>3?pager.currentPage-3:1}" end="${pager.pageCount-pager.currentPage>3?pager.currentPage+3:pager.pageCount}" step="1">
            <c:if test="${pager.currentPage==temp}">
                <a href="${ctx}/${pager.url}&currentPage=${temp}" class="cur">${temp}</a>
            </c:if>
            <c:if test="${pager.currentPage!=temp}">
                <a href="${ctx}/${pager.url}&currentPage=${temp}">${temp}</a>
            </c:if>
        </c:forEach>
        <c:if test="${pager.currentPage<pager.pageCount}">
            <a href="${ctx}/${pager.url}&currentPage=${pager.currentPage+1}" class="p_pre">下一页</a>
        </c:if>
        <a href="${ctx}/${pager.url}&currentPage=${pager.pageCount}" class="p_pre">尾页</a>
    </c:if>
    <c:if test="${pager.pageCount==0}">
        暂无记录
    </c:if>
</div>
</body>
</html>